﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ForzaGT3.Data;

namespace ForzaGT3.Controllers
{
    public partial class CompetitorsController : Controller
    {
        //
        // GET: /Competitors/

        public virtual ActionResult Index()
        {
            IEnumerable<Driver> data = Driver.GetAll()
                .OrderByDescending(x=>x.Points);

            ViewData.Model = data;

            return View();
        }

    }
}
